package cn.tedu.oopextends;/**
 * @Author 金帮嘉诚 @Date 2021-06-24 星期四 20:58
 */
/*本类用于测试*/

/**知识点*/
public class TestSuper {
    public static void main(String[] args) {

    }
}
class A{
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
class B extends A{
    String name1;

    public B() {
    }

    public B(String name1) {
        this.name1 = name1;
//        System.out.println(super.name);//'name' has private access in 'cn.tedu.oopextends.A'
    }
}

